package com.edu.mapper;

import com.edu.bean.Book;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    Book selectBookById(int bookId);

    //不使用分页插件
//    List<Book> selectAll0(@Param("offset") int offset,@Param("pageSize") int pageSize);

    List<Book> selectAll();

    List<Book> selectByType(String bookType);

    List<Book> selectAll2(@Param("pageNum") int pageNum,@Param("pageSize") int pageSize);

    Page<Book> selectAll3();

    int deleteBook(int bookId);


}
